<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Question extends Model
{
    //
    protected $table = 'xcx_questions';
    protected $fillable = ['title','type'];

    public function option()
    {
        return $this->hasMany(QuestionOption::class,'q_id');
    }
}
